package com.hancai.barrage.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter
@Getter
public class Employee {
    private Long id;

    private String username;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private Integer gender;

    private Department dept;

    @JsonFormat(pattern="YYYY-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date hireDate;

    private String avatar;

}